import uniCrazyRouter from "uni-crazy-router";
export function setupRouter (app) {
	app.use(uniCrazyRouter)
}

uniCrazyRouter.beforeEach(async (to, from, next) => {
	console.log("=======uniCrazyRouter========")
	
	if(to.url == 'pages/flow/index'){
		console.log(to);
		console.log(from);
		return;
	}
	console.log("=======uniCrazyRouter========")
	next();
})

uniCrazyRouter.afterEach((to, from)=>{
    // 逻辑代码
})